package com.hncgy.xzf.jdapi.domain.product.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * <p>
 * 促销活动表
 * </p>
 *
 * @author 不会代码的蜡笔
 * @since 2025-11-05
 */
@Data
@Schema(name = "Promotions对象", description = "促销活动表")
public class Promotions implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "促销活动ID，主键")
    @TableId(value = "promotion_id", type = IdType.AUTO)
    private Integer promotionId;

    @Schema(description = "促销活动名称")
    private String promotionName;

    @Schema(description = "促销类型：flash_sale-限时抢购, group_buy-团购, seckill-秒杀, discount-折扣")
    private String promotionType;

    @Schema(description = "开始时间")
    private LocalDateTime startTime;

    @Schema(description = "结束时间")
    private LocalDateTime endTime;

    @Schema(description = "状态：upcoming-即将开始, active-进行中, ended-已结束, cancelled-已取消")
    private String status;

    @Schema(description = "活动规则，JSON格式")
    private String rules;

    @Schema(description = "活动描述")
    private String description;

    @Schema(description = "创建人ID")
    private Integer createdBy;

    @Schema(description = "创建时间")
    private LocalDateTime createdAt;

    @Schema(description = "更新时间")
    private LocalDateTime updatedAt;
}
